package com.foftact.etfposition;

import java.util.Date;

/**
 * ETF行业配置模型类
 * 对应数据库表：etfblock
 */
public class ETFBlock {
    private Long id;             // 主键ID
    private String blockCode;    // 板块代码
    private Double blockRatio;   // 板块占比
    private Date reportDate;     // 报告日期
    private Date updateTime;     // 更新时间

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBlockCode() {
        return blockCode;
    }

    public void setBlockCode(String blockCode) {
        this.blockCode = blockCode;
    }

    public Double getBlockRatio() {
        return blockRatio;
    }

    public void setBlockRatio(Double blockRatio) {
        this.blockRatio = blockRatio;
    }

    public Date getReportDate() {
        return reportDate;
    }

    public void setReportDate(Date reportDate) {
        this.reportDate = reportDate;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ETFBlock{" +
                "id=" + id +
                ", blockCode='" + blockCode + '\'' +
                ", blockRatio=" + blockRatio +
                ", reportDate=" + reportDate +
                ", updateTime=" + updateTime +
                '}';
    }
}